<?php

namespace app\index\service;

use app\index\dao\AreaDao;

/**
 * Class CityTreeService
 * @package app\home\service
 */
class CityTreeService
{
    // dao
    private AreaDao $areaDao;

    public function __construct(AreaDao $areaDao)
    {
        $this->areaDao = $areaDao;
    }

    /**
     * 列表
     * @return array
     */
    public function index(): array
    {
        return $this->areaDao->selectCities();
    }


}
